/**
 * 获取搜索api模块
*/
import request from "@/utils/request";

// 热搜关键字
export const hotKeyword = () => {
  return request({
    method: 'GET',
    url: '/search/hot'
  })
}

// 热搜关键字的结果
export const hotKeyWordResult = (type, keyword) => {
  return request({
    method: 'GET',
    url: `/cloudsearch?type=${type}&keywords='${keyword}'`
  })
}